package com.weixinli.beans;

import java.io.Serializable;

public class UserReply implements Serializable{
	private int rid;//回复ID
	private String rcontent;//回复内容
	private int w_uid;//回复人ID
	private String rtime;//发布时间
	private int cid;//关联评论ID
	private String temp;//备用字段
	
	private static final long serialVersionUID = 1L;

	public UserReply(int rid, String rcontent, int w_uid, String rtime,
			int cid, String temp) {
		super();
		this.rid = rid;
		this.rcontent = rcontent;
		this.w_uid = w_uid;
		this.rtime = rtime;
		this.cid = cid;
		this.temp = temp;
	}

	public int getRid() {
		return rid;
	}

	public void setRid(int rid) {
		this.rid = rid;
	}

	public String getRcontent() {
		return rcontent;
	}

	public void setRcontent(String rcontent) {
		this.rcontent = rcontent;
	}

	public int getW_uid() {
		return w_uid;
	}

	public void setW_uid(int w_uid) {
		this.w_uid = w_uid;
	}

	public String getRtime() {
		return rtime;
	}

	public void setRtime(String rtime) {
		this.rtime = rtime;
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getTemp() {
		return temp;
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + cid;
		result = prime * result
				+ ((rcontent == null) ? 0 : rcontent.hashCode());
		result = prime * result + rid;
		result = prime * result + ((rtime == null) ? 0 : rtime.hashCode());
		result = prime * result + ((temp == null) ? 0 : temp.hashCode());
		result = prime * result + w_uid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserReply other = (UserReply) obj;
		if (cid != other.cid)
			return false;
		if (rcontent == null) {
			if (other.rcontent != null)
				return false;
		} else if (!rcontent.equals(other.rcontent))
			return false;
		if (rid != other.rid)
			return false;
		if (rtime == null) {
			if (other.rtime != null)
				return false;
		} else if (!rtime.equals(other.rtime))
			return false;
		if (temp == null) {
			if (other.temp != null)
				return false;
		} else if (!temp.equals(other.temp))
			return false;
		if (w_uid != other.w_uid)
			return false;
		return true;
	}

	public UserReply() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "UserReply [rid=" + rid + ", rcontent=" + rcontent + ", w_uid="
				+ w_uid + ", rtime=" + rtime + ", cid=" + cid + ", temp="
				+ temp + "]";
	}
}
